package com.hoas.comparedb.core;


import com.hoas.comparedb.entity.Table;
import com.hoas.comparedb.entity.TableColumn;
import com.hoas.comparedb.entity.TableIndex;

import java.sql.SQLException;
import java.util.List;

public interface DBReader {
    List<Table> getTables( String table ) throws SQLException;

    String getTableStructure(Table table) throws SQLException;

    List<TableColumn> getColumns(Table table) throws SQLException;

    List<TableIndex> getIndexes(Table table) throws SQLException;

    String getDb();

    CompareSource getSource();
}
